package com.atguigu.springcloud.controller;

import com.atguigu.springcloud.service.IMessageProvide;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @USER: dayu
 * @DATE: 2020/4/1
 * @DESCRIPTION:
 */
@RestController
@Slf4j
public class SendMessageController {
    @Resource
    private IMessageProvide messageProvide;

    @GetMapping("/sendMessage")
    public String sendMessage(){
        return messageProvide.send();
    }
}
